#ifndef _RANDOM_H
#define _RANDOM_H

#include <ctime>
#include <cstdlib>

// random number generator
// the min,max parameter functions return values INCLUSIVE min and max

class Random
{
public:
  Random() {srand((unsigned int)time(NULL));}
  int getInt() {return rand();}
  int getInt(int min,int max) {return min+(rand()%(max+1-min));}
  float getFloat() {return (float)rand()/(float)RAND_MAX;}
  float getFloat(float min,float max) {return min+((float)rand()/(float)RAND_MAX)*(max-min);}
};

#endif